<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<h1>直播详情信息</h1>
<form action="${pageContext.request.contextPath}/live/list2" method="post" onsubmit="return confirmSubmit()">
    <label>编号</label>
    <input type="text" name="id" value="${livecommerce.id}" disabled>
    <div class="from-group">
        <label>主播姓名</label>
        <input type="text" name="streamer" value="${livecommerce.streamer}" required>
    </div>
    <div class="form-group">
        <label>直播平台</label>
        <select name="livePlatform" required readonly>
            <option value="">请选择</option>
            <option value="抖音" ${livecommerce.livePlatform=='抖音'? 'selected':''}>抖音</option>
            <option value="微信" ${livecommerce.livePlatform=='微信'? 'selected':''}>微信</option>
            <option value="快手" ${livecommerce.livePlatform=='快手'? 'selected':''}>快手</option>
        </select>
    </div>
    <div class="form-group">
        <label>带货商品</label>
        <div class="form-group">
            <input type="text" name="product" value="${livecommerce.product}" required readonly placeholder="商品名称">
            <span>商品价格</span>
            <input type="number" name="price" value="${livecommerce.price}" required readonly placeholder="0.00"
                   step="0.01" min="0">
        </div>
    </div>
    <div class="form-group">
        <label>直播时间</label>
        <input type="datetime-local" name="livetime" required readonly
               value="<fmt:formatDate value="${livecommerce.liveTime}" pattern="yyyy-MM-dd'T'HH:mm"/>">
           </div>
    <div class="form-group">
        <label>直播状态</label>
        <div>
        <label><input type="radio" name="status" value="1" ${livecommerce.status==1?'checked':''} readonly>正常直播</label>
        <label><input type="radio" name="status" value="0" ${livecommerce.status==0?'checked':''} readonly>取消直播</label>
        </div>
    </div>
    <div class="form-group">
       <a href="${pageContext.request.contextPath}/live/list">
        <button type="button">返回列表</button>
       </a>
           </div>
</form>
</body>
</html>
<script>
    function confirmSubmit(){
        return confirm("确认修改吗")
    }
、